package 封装作业;

public class Sanjaio {
    public  Double a;
    public  Double b;
    public  Double c;

    public  void  zhijiao(){
        if ((a*a)+(b*b)==c){
            System.out.println("这是一个直角三角型");
        }else {
            System.out.println("不是直角三角型");
        }
    }
    public  void dengyao(){

        if (a==b || a==c || b == c){
            System.out.println("这是一个等腰三角型");
        }else {
            System.out.println("不是等腰三角型");
        }
    }
    public void dengbian(){

        if (a == b && a == c && b == c ){
            System.out.println("这是一个等边三角形");
        }else {
            System.out.println("不是等边三角型");
        }
    }
    public  double zhouchang (){
        this.a=a;
        this.b=b;
        this.c=c;
        return a+b+c;
    }

}




































